package com.zdkj.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zdkj.admin.api.entity.SysLog;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 日志表 Mapper 接口
 * </p>
 *
 * @author cui_com
 * @since 2017-11-20
 */
public interface SysLogMapper extends BaseMapper<SysLog> {

    /**
     * 删除过期日志
     *（current_time-create_time) >= expire_time log
     * @param expireTimeSeconds
     */
    int deleteExpireLog(@Param("expireTimeSeconds") Integer expireTimeSeconds);

    /**
     * 归档过期日志
     *（current_time-create_time) >= expire_time log
     * @param expireTimeSeconds
     */
    int fileExpireLog(@Param("expireTimeSeconds") Integer expireTimeSeconds);
}
